<style tyle="text/css">
    .modal-lg {
    width: 90%;
    }
    

</style>
<div class="modal-header">
    <h4 class="modal-title">订单信息</h4>
</div>
<div class="modal-body">
    <div class="container-fluid form-horizontal ">
        <div class="col-xs-12">
                <div class="panel-body">
                    <div class="container-fluid">
                
                    <div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
                    <div class="panel panel-default">
                    <div class="panel-body">
                    <div class="col-xs-12 col-md-12" >
                        <div class="row ">
                            <div class="col-sm-2">
                                <input type="text" class="form-control" placeholder="订单编号" ng-model="searchform.code" ng-keyup="myKeyup($event)">
                            </div> 

                            <div class="col-sm-3">
                                <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                                    <input class="form-control" />
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-calendar"></span>
                                    </span>
                                </div>
                                
                            </div>
                            

                            <div class="col-sm-3 ">
                                <div class="input-group" datetimepicker ng-model="vm1.date" options="vm1.options">
                                    <input class="form-control"/>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-calendar"></span>
                                    </span>
                                </div>
                            </div>  

                            <div class="col-sm-2">
                                <button class="btn btn-block btn-info" ng-click="getlist()">搜索</button> 
                            </div>
                            <div class="col-sm-2">
                                <button class="btn btn-block btn-info" ng-click="oneupdate()">一键同步</button> 
                            </div>


                        </div> 


                    </div>
                    </div>
                    </div> 
                    <!-- searchArea -->
                     <div class="panel panel-default">
                        <div class="panel-body"> 
                             <table class="table table-condensed table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th class="col-md-2 text-center">订单编号</th>
                                        <th class="col-md-2 text-center">下单时间</th>
                                        <th class="col-md-1 text-center">电话</th>
                                        <th class="col-md-1 text-center">订单来源</th>
                                        <th class="col-md-1 text-center">支付金额</th>
                                        <th class="col-md-2 text-center">订单状态</th>
                                        <th class="col-md-2 text-center">出票状态</th>
                                        <th class="col-md-1 text-center">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-repeat="obj in objs">
                                        <td class="">{{obj.code}} </td>
                                        <td class="text-center">{{obj.create_time}}</td>
                                        <td class="text-center">{{obj.mobile}}</td>
                                        <td class="text-center">{{obj.from_app_id}}</td>
                                        <td class="text-center">{{(obj.pay_fee / 100) | currency:'¥'}}</td>
                                        <td class="text-center">
                                            <p class="" ng-if="obj.cancel_state == '0'">正常</p>
                                            <p class="" ng-if="obj.cancel_state == '1'">已取消</p>
                                        </td>
                                        <td class="text-center">{{obj.ticket_state_name}}</td>
                                        <td class="text-center">
                                            <a ng-click="updateticket(obj.code)" ng-show="obj.ticket_state == '2'" class="btn btn-primary btn-xs">同步</a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table> 

                             <div class="text-right">
                                <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
                                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                                class="m-t-none m-b">
                                </pagination>
                            </div> 
                         </div>
                    </div> 
                 </div> 
                 
			    </div>
			</div>
		</div>
	</div>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>                   